package com.psjj.privilege.web.servlet;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@WebServlet("/main.do")
public class MainController extends BasicServlet{
    private static final String baseUrl = "/WEB-INF/page/";
    private void mainUI(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        //转发到main.jsp页面
        req.getRequestDispatcher(baseUrl+"main.jsp").forward(req,resp);
    }
    private void welcomeUI(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        //转发至welcome.jsp
        req.getRequestDispatcher(baseUrl+"welcome.jsp").forward(req,resp);
    }
}
